#include<page_manager.h>

static PPageAction g_ptPageHead = NULL;

void RegisterPageAction(PPageAction ptPageAction)
{
	ptPageAction->ptNext = g_ptPageHead;
	g_ptPageHead = ptPageAction;
}

void PageActionSystemRegister(void)
{
	extern void MainPageRegister(void);
	MainPageRegister();
}

PPageAction SelectPage(char* name)
{
	PPageAction pTemp = g_ptPageHead;
	while(pTemp)
	{
		if(strcmp(name,pTemp->name) == 0)
		{
			return pTemp;
		}
		pTemp = pTemp->ptNext;
	}
	return NULL;
}

